<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<%@ include file="../components/screenHeader.jspf"%>

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in
voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur
sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.</p>

<form:form method="post" action="register" modelAttribute="newUser">
	<table class="align-center RegisterForm">
		<tr class="ImportantRow">
			<td>Eesnimi:</td>
			<td><form:input size="20" path="firstName"
				cssStyle="width: 200px" /><br />
			<form:errors cssClass="formError" path="firstName" /></td>
		</tr>
		<tr class="ImportantRow">
			<td>Perenimi:</td>
			<td><form:input size="20" path="lastName"
				cssStyle="width: 200px" /><br />
			<form:errors cssClass="formError" path="lastName" /></td>
		</tr>
		<tr class="ImportantRow">
			<td>E-mail:</td>
			<spring:url value="checkEmail" var="checkEmail" />
			<td><form:input name="email"
				onkeyup="javascript: checkEmail('${checkEmail}','email');" size="20"
				path="email" cssStyle="width: 200px" /><br />
			<form:errors cssClass="formError" path="email" /> <br />
			<span class="formError" id="emailStatus">${emailStatus}</span></td>
		</tr>
		<tr class="ImportantRow">
			<td>Parool:</td>
			<td><form:password size="20" path="password"
				cssStyle="width: 200px" /><br />
			<form:errors cssClass="formError" path="password" /></td>
		</tr>
		<tr class="ImportantRow">
			<td>Parool uuesti:</td>
			<td><input type="password" name="pass" size="20"
				style="width: 200px" /><br />
		</tr>
		<tr>
			<td colspan="2" align="right"><input class="SubmitButton"
				type="submit" value="Registreeru!"></td>
		</tr>
	</table>
</form:form>

<%@ include file="../components/screenFooter.jspf"%>